home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-12-13 | 1.5 KB | 57 lines |
- # Built one model of the libnix libraries - use
- # make CFLAGS="what you like" to built them.
- #
- # Combine
- #
- # CFLAGS=-Wall -O3 -DOS_20_ONLY
- #
- # -fbaserel -DSMALL_DATA for small data model
- # -mc68020 for 68020 specific code
- # -mc68881 for 68881 specific code
- # -DIXPATHS for Un*x path option
- # -DDEBUG_LIB build a library for debugging (not recommended)
- # -DOS_20_ONLY disable some 1.3 compatibilities (use always)
-
- SOURCEDIR=../sources
-
- MAKELIST=make -f ../makefile filelist
-
- SUBDIRS=nixmain nix_main misc math nix stubs
-
- all: $(SUBDIRS)
- for subdir in $(SUBDIRS); do \
- ( cd $$subdir;make -f ../$(SOURCEDIR)/$$subdir/makefile CFLAGS="$(CFLAGS)" ); \
- done
-
- $(SUBDIRS):
- mkdir $@
-
- filelists:
- -cd math; $(MAKELIST) SOURCEFILES="*/*"
- -cd nix; $(MAKELIST) SOURCEFILES="*/*"
- -cd stubs; make -f ../makefile libbases/dos.c; \
- $(MAKELIST) SOURCEFILES="libbases/* misc/* libnames/* stubs/*"
-
- filelist:
- echo "#Computer generated partial makefile-do not edit" >filelist
- echo "OBJECTS= \\" >>filelist
- ls $(SOURCEFILES)|gawk '{ print substr($$0,1,length($$0)-2) ".o \\" }' >>filelist
- echo >>filelist
- echo "SUBDIRS= \\" >>filelist
- ls -d -F *|gawk '/\// { print substr($$0,1,length($$0)-1) " \\" }' >>filelist
-
- libbases/dos.c: ../headers/makebase library.list
- -rm libbases/* libnames/*
- rx /headers/makebase
-
- clean:
- cd nixmain; make clean
- cd nix_main; make clean
- cd misc; make clean
- cd math; make clean
- cd nix; make clean
- cd stubs; make clean
-
- veryclean:
- -rm -r *
-